package com.example.mapper;

import com.example.entity.Account;
import com.example.entity.Admin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
//@Mapper
public interface AdminMapper {

    List<Admin> selectAll(String name);

    void insert(Admin admin);

    int selectByUsername(String username);

    void updateById(Account admin);

    void deleteById(Integer id);

    Admin selectByUsernameAndPassword(String username, String password);

    Account selectById(String userId);
}